// vite.config.js
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///D:/java/enterprise_project/campus-secondcar-trading-platform/front/node_modules/.pnpm/vite@5.2.8_sass@1.75.0/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/java/enterprise_project/campus-secondcar-trading-platform/front/node_modules/.pnpm/@vitejs+plugin-vue@5.0.4_vite@5.2.8_vue@3.4.21/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import VueDevTools from "file:///D:/java/enterprise_project/campus-secondcar-trading-platform/front/node_modules/.pnpm/vite-plugin-vue-devtools@7.0.25_vite@5.2.8_vue@3.4.21/node_modules/vite-plugin-vue-devtools/dist/vite.mjs";
import AutoImport from "file:///D:/java/enterprise_project/campus-secondcar-trading-platform/front/node_modules/.pnpm/unplugin-auto-import@0.17.5/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///D:/java/enterprise_project/campus-secondcar-trading-platform/front/node_modules/.pnpm/unplugin-vue-components@0.26.0_vue@3.4.21/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///D:/java/enterprise_project/campus-secondcar-trading-platform/front/node_modules/.pnpm/unplugin-vue-components@0.26.0_vue@3.4.21/node_modules/unplugin-vue-components/dist/resolvers.js";
import Icons from "file:///D:/java/enterprise_project/campus-secondcar-trading-platform/front/node_modules/.pnpm/unplugin-icons@0.18.5/node_modules/unplugin-icons/dist/vite.js";
import IconsResolver from "file:///D:/java/enterprise_project/campus-secondcar-trading-platform/front/node_modules/.pnpm/unplugin-icons@0.18.5/node_modules/unplugin-icons/dist/resolver.js";
var __vite_injected_original_import_meta_url = "file:///D:/java/enterprise_project/campus-secondcar-trading-platform/front/vite.config.js";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    VueDevTools(),
    AutoImport({
      resolvers: [
        ElementPlusResolver(),
        // 自动导入图标组件
        IconsResolver({
          prefix: "Icon"
        })
      ]
    }),
    Components({
      resolvers: [
        ElementPlusResolver({ importStyle: "sass" }),
        // 自动注册图标组件
        IconsResolver({
          // 图标名前缀 i-ep-图标名
          enabledCollections: ["ep"]
        })
      ]
    }),
    Icons({
      autoInstall: true
    })
  ],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  },
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: `
        @use "@/styles/element/index.scss" as *;
        @use "@/styles/var.scss" as *;
        `
      }
    }
  },
  server: {
    proxy: {
      // 接口代理
      "/api": {
        target: "http://localhost:8080",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, "")
        // 替换路径上的api为空
      },
      // 图片代理
      "/upload": {
        target: "http://localhost:8080/images",
        changeOrigin: true
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxqYXZhXFxcXGVudGVycHJpc2VfcHJvamVjdFxcXFxjYW1wdXMtc2Vjb25kY2FyLXRyYWRpbmctcGxhdGZvcm1cXFxcZnJvbnRcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkQ6XFxcXGphdmFcXFxcZW50ZXJwcmlzZV9wcm9qZWN0XFxcXGNhbXB1cy1zZWNvbmRjYXItdHJhZGluZy1wbGF0Zm9ybVxcXFxmcm9udFxcXFx2aXRlLmNvbmZpZy5qc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vRDovamF2YS9lbnRlcnByaXNlX3Byb2plY3QvY2FtcHVzLXNlY29uZGNhci10cmFkaW5nLXBsYXRmb3JtL2Zyb250L3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHsgZml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